import request from '@/utils/request'
export function saveAnswer(data) {
  return request({
    url: '/api/answer/saveAnswer',
    method: 'post',
    data
  })
}

export function getAnswerMainListByQuestionId(data) {
  return request({
    url: '/api/answer/getAnswerMainListByQuestionId',
    method: 'post',
    data
  })
}

export function getAnswerListByAnswerMainId(data) {
  return request({
    url: '/api/answer/getAnswerListByAnswerMainId',
    method: 'post',
    data
  })
}

export function deleteAnswer(params) {
  return request({
    url: '/api/answer/deleteAnswer',
    method: 'post',
    params
  })
}
